<template>
  <div>
    <el-card style="margin: 20px 15px">
      <div style="display: flex; align-items: center">
        <img
          :src="userStore.avatar"
          style="width: 200px; height: 200px; border-radius: 100px"
        />
        <div class="content">
          <span class="title">{{ userStore.username }}</span>
          <span class="title">{{ nowTime }}</span>
          <div
            style="
              margin-top: 25px;
              font-size: 18px;
              color: #d81e06;
              font-style: italic;
            "
          >
            硅谷甄选运营平台
          </div>
        </div>
      </div>
    </el-card>
    <div style="display: flex; justify-content: center; margin: 30px 0">
      <svg-icon name="safe" width="500px" height="500px"></svg-icon>
      <!-- <img src="@/assets/tuandui.png" style="width: 500px" /> -->
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import useUserStore from "../../store/modules/user";
import { getTime } from "../../utils/time";
import SvgIcon from "@/components/SvgIcon/index.vue";

const nowTime = ref("");
const userStore = useUserStore();
nowTime.value = ", " + getTime() + "好！";
</script>

<style lang="scss" scoped>
.title {
  font-size: 36px;
  font-weight: 550;
}
.content {
  height: 150px;
  margin: 0 30px;
}
</style>
